package Demo23;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demp23 {

    public static void main(String[] args) throws IOException {

      FileOutputStream fos = new FileOutputStream("./test.txt");

      int a = 'A';
      fos.write(a);

      byte[] arr = {'a',68,69};
      fos.write(arr);

      //刷新缓冲区
      fos.flush();
    }
}
